﻿using KinonekoSoftware.ArkSpark.Documents;

namespace KinonekoSoftware.ArkSpark.Runtimes.Presenters
{
    public abstract class DocumentElementPresenter<T> : DocumentElementPresenter where T : DocumentElement
    {
        protected DocumentElementPresenter(T element)
        {
            //
            //
            ArgumentNullException.ThrowIfNull(element);
            
            //
            //
            TargetElement = element;
        }
        

        public sealed override DocumentElement GetDocumentElement() => TargetElement;
        
        /// <summary>
        /// 
        /// </summary>
        public T TargetElement { get; }
    }
}